package com.platform.auth.dto;

import com.platform.common.entity.BaseDTO;
import lombok.*;

import javax.validation.constraints.NotBlank;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author GH
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class PermissionDTO extends BaseDTO {

    private String id;

    private Date createdTime;

    private Date updatedTime;

    private Map<String, String> features;

    @NotBlank(message = "permissionUrl不能为空")
    private String url;

    private String name;

    private List<String> roles;
}
